<!--#include file="../inc.asp" -->
<style>
<!--
a{ TEXT-DECORATION:none; }
/*page*/
.j_page {
	padding-right: 0px; padding-left: 0px; padding-bottom: 2px; padding-top: 2px;float:right;font: 12px Arial,Helvetica,Verdana,sans-serif;
}
.j_page a,.j_page a.current {
	margin:1px 0px 1px 3px;BORDER: #F4F2C9 1px solid; padding: 1px 6px 0px 6px;OVERFLOW: hidden; line-height: 17px;height: 17px;_height /*5.5*/:19px; FLOAT: left;
	background-color:#ffffff;color:black;
}
.j_page a:hover,.j_page .select {
	TEXT-DECORATION:none;
	background-color:#F4F2C9;color:#827C31;
}
.j_page a.current {
	font-weight:normal;color:gray;
	background-color:#F4F2C9; 
}
.j_page input{margin:1px 0px 1px 3px;border:#ADD2CC 1px solid;font-size:9pt;height:15px;line-height:15px;_height /*5.5*/:19px;vertical-align: middle;}

-->
</style>
<%
Dim pager
set pager = ab.lib("pager")
pager.Param = "page"
pager.Url = ""
'pager.Total = rs.RecordCount
pager.dom = rs
pager.PageSize = 3

pager.Format = "<div class=""j_page"">{first} {prev} {list} {next} {last}</div>"
pager.Style = ""
pager.addStyle "first{display:hide;}"
pager.addStyle "prev{display:auto;class:prevPage;dis-tag:span;text:上一页;}"
pager.addStyle "next{display:auto;class:nextPage;dis-tag:span;text:下一页;}"
pager.addStyle "last{display:hide;}"
pager.addStyle "list{curr-tag:a;curr-class:current;link-text:'$n';link-class:'num';link-space:' ';dot-val:'..';dot-for:a#xy;index:4|4;min:9;}"

ab.c.w "<div id=""wrapbox"">"
ab.c.wr "==========="
ab.c.wr "<strong>第" & pager.Begin & "条 - 第" & pager.End & "条</strong>"
Dim i, n, m
n = pager.Begin
m = pager.End
Dim k : k = 1
If Rs.State = 1 Then 'rs对象是打开的
	If Not Rs.Eof Then
		For i = n To m
			rs.MoveFirst
			rs.Move i-1
			If Not Rs.Eof Then ab.c.wn "<li>" & rs("id") & " : " & rs("name") & "</li>"
		Next
	End If
End If
ab.c.wr "==========="
ab.c.wr "共" & pager.Total & "条数据 当前: 第" & pager.PageNo & "页/共" & pager.PageCount & "页 每页显示:" & pager.PageSize & "条"
ab.c.wr pager.html
'pager.Show()
ab.c.wr "=========="
ab.c.wr "</div>"

rs.Close
Set rs = Nothing
%>